import java.util.Scanner;
public class no2 {
    public static void main(String[] args) {
        int huashi;
        int sheshi;
        Scanner schuashi = new Scanner(System.in);
        System.out.println("请输入要转换的华氏度：");
        huashi = schuashi.nextInt();
        System.out.println(huashi+"°F转为摄氏度后为"+(huashi-32)*5/9.0+"°");
        Scanner scsheshi = new Scanner(System.in);
        System.out.println("请输入要转换的摄氏度：");
        sheshi = scsheshi.nextInt();
        System.out.println(sheshi+"°转为华氏度后为"+(sheshi*9.0/5+32)+"°F");
    }
}
